<#escape x as x?html>
<div class="bjui-pageContent">
    <form action="${ctx}/system/org/edit" class="pageForm" data-toggle="validate" data-reload-navtab="false" data-callback="editCallback">
    	<input type="hidden" value="${org.orgId}" name="orgId">
        <table class="table table-condensed table-hover">
            <tbody>
            	<#if parent ??>
            	<tr>
	                <td>
	                    <label for="orgCode" class="control-label x90">父机构名称：</label>
	                    <input type="text" name="parentName" value="${parent.orgName!}" readonly="readonly">
	                </td>
	            </tr>
	            </#if>
	            
	            <tr>
	                <td>
	                    <label for="orgCode" class="control-label x90">机构编码：</label>
	                    <input type="text" name="orgCode" value="${org.orgCode}" data-rule="required" size="20">
	                </td>
	            </tr>
	            <tr>
	                <td>
	                    <label for="orgName" class="control-label x90">机构名称：</label>
	                    <input type="text" name="orgName" value="${org.orgName}" data-rule="required" size="20">
	                </td>
	            </tr>
	             <tr>
	                <td>
	                    <label for="orgName" class="control-label x90">机构类型：</label>
	                    <@h.select name="orgTypeCode" list=fn.getDicValue('ORG_TYPE_CODE') value=org.orgTypeCode />
	                </td>
	            </tr>
	            <tr>
	                <td>
	                    <label for="available" class="control-label x90">状态：</label>
	                     <@h.select name="available" list=fn.getDicValue('AVAILABLE_STATUS') value=org.available/>
	                </td>
	            </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">关闭</button></li>
        <li><button type="submit" class="btn-green">保存</button></li>
    </ul>
</div>
</#escape>